<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>分类</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.css">
    <link rel="stylesheet" href="/css/my01.css">
</head>
<body>
<!--导航条-->
<nav class="ui segment inverted attached m-padded-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted menu secondary stackable">
            <h2 class="ui teal header item">logo</h2>
            <a th:href="@{/}" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a th:href="@{/types/-1}" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a th:href="@{/tags/-1}" class="m-item item m-mobile-hide" ><i class="tags icon"></i>标签</a>
            <a th:href="@{/archives}" class="m-item item m-mobile-hide" ><i class="clone icon"></i>归档</a>
            <a  th:href="@{/about}" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="right m-item item m-mobile-hide">
                <div class="ui icon inverted transparent input m-margin-tb-tiny">
                    <!--全局搜索-->
                    <form name="search" action="#" th:action="@{/search}" method="post" target="_blank">
                        <div class="ui icon inverted transparent input m-margin-tb-tiny">
                            <input type="text" name="query" placeholder="Search...." th:value="${query}">
                            <i onclick="document.forms['search'].submit()" class="search link icon"></i>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <a href="" class="black t_menu icon ui button m-mobile-show m-right-top ">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--中间部分-->
<div class="m-container m-padded-tb-large">
    <div class="ui container">
        <!--header-->

            <!--header-->
            <div class="ui top attached segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">归档</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h2 class="ui orange header m-inline-block"  th:text="${blogCount}">14</h2>篇
                    </div>
                </div>
            </div>
            <!--2018-->
           <th:block th:each="item : ${archiveMap}">
            <h2 class="ui header center aligned" th:text="${item.key}">2018</h2>
          <div class="ui fluid vertical menu">
              <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="item" th:each="blog : ${item.value}">
           <span>
            <i class="mini teal circle icon"></i><span th:text="${blog.title}">关于刻意练习的清单</span>
            <div class="ui teal basic left pointing label m-padded-mini " th:text="${#dates.format(blog.updateTime,'MMMdd')}">9月03</div>
          </span>
                  <div class="ui orange basic left pointing label m-padded-mini " th:text="${blog.flag}">原创</div>
            </a>
        </div>
           </th:block>
           <!--2019-->
        </div>

    </div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<!--页脚-->
<footer class="ui inverted vertical segment">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui link list inverted">
                    <div class="item">
                        <img src="images/wechat.jpg" alt="" class="ui rounded image" style="width: 100px">
                    </div>
                </div>
            </div>

            <div class="three wide column">
                <h4 class="ui inverted header">最新博客</h4>
                <div class="ui inverted link list" th:each="b:${page}">
                    <a href="#" class="item" th:text="${b.title}">用户故事(User Story)</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">联系我</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">zypzw@163.cn</a>
                    <a href="#" class="item">QQ:1965199277</a>


                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">
                    关于我
                </h4>
                <p>my name is zhangyuping,this is my personal blog</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright © 2019-9-27</p>
    </div>
</footer>
</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.10/semantic.min.js"></script>
<script type="text/javascript">
    $(".t_menu").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    })
</script>
</html>